<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购物车</title>
    <link rel="shortcu icon" href="favicon.ico">
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/cart.css">
</head>

<body>
    <header class="lt_header">
        <h4>
            <a class="lt_h_left" href="javascript:history.back();">
                <span class="fa fa-arrow-left"></span>
            </a>
            购物车
            <a class="lt_h_right" href="javascript:;">
                <span class="icon_refresh fa fa-refresh"></span>
            </a>
        </h4>
    </header>
    <div class="lt_container">
        <!--下拉刷新容器-->
        <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll">
                <ul id="OA_task_2" class="mui-table-view">

                </ul>
            </div>
        </div>
    </div>
    <div class="order_info">
        <span class="order_total_price">
            订单总额:￥
            <span class="cart_rmb">0.00</span>
        </span>
        <button class="createOrderBtn mui-pull-right">生成订单</button>
    </div>
    <footer class="lt_footer">
        <a href="/mobile/index.html">
            <span class="fa fa-home"></span>
            <p>首页</p>
        </a>
        <a href="/mobile/category.html">
            <span class="fa fa-bars"></span>
            <p>分类</p>
        </a>
        <a class="active" href="/mobile/cart.html">
            <span class="fa fa-shopping-cart"></span>
            <p>购物车</p>
        </a>
        <a href="/mobile/user/index.html">
            <span class="fa fa-user"></span>
            <p>会员中心</p>
        </a>
    </footer>
</body>

</html>
<script type="text/html" id="cartTpl">
    {{each data as value}}
    <li data-obj="{{objToJson(value)}}" class="mui-table-view-cell mui-transitioning">
        <div class="mui-slider-right mui-disabled">
            <a class="mui-btn mui-btn-primary editBtn" style="transform: translate(-90px, 0px);">编辑</a>
            <a class="mui-btn mui-btn-danger delBtn" style="transform: translate(-180px, 0px);">删除</a>
        </div>
        <div class="mui-slider-handle" style="transform: translate(0px, 0px);">
            <div class="mui-table-cell">
                <div class="pro_list">
                    <div class="pro_item mui-clearfix">
                        <div class="item_left">
                            <img src="{{value.pic[0].picAddr}}" alt="">
                            <input class="chk_item" type="checkbox" name="" id="">
                        </div>
                        <div class="item_right">
                            <div class="item_pro_info mui-ellipsis-2">
                               {{value.proName}}
                            </div>
                            <div class="item_pro_mid">
                                <span class="new_price">￥{{value.price}}</span>
                                <span class="old_price">￥{{value.oldPrice}}</span>
                                <span class="pro_num mui-pull-right">x{{value.num}}双</span>
                            </div>
                            <div class="item_pro_size">
                                鞋码:{{value.size}}
                            </div>
                        </div>
                        <span class="mui-icon mui-icon-forward"></span>
                    </div>
                </div>
            </div>
        </div>
    </li>
    {{/each}}
</script>
<script type="text/html" id="editTpl">
     <!-- 尺码 -->
    <div class="pro_size">
        尺码:
        {{each sizeArr as value}}
        {{if value==size}}
        <span class="active">{{value}}</span>
        {{/if}}
        {{if value!=size}}
        <span>{{value}}</span>
        {{/if}}
        {{/each}}
    </div>
    <!-- 数量 -->
    <div class="pro_num">
        数量:
        <div class="mui-numbox" data-numbox-min='0' data-numbox-max='{{productNum}}'>
            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
            <input class="mui-numbox-input" type="number" value="{{num}}"/>
            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
        &nbsp;剩余:{{productNum}}件
    </div>
</script>
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/zepto/zepto.min.js"></script>
<script src="./assets/artTemplate/template.js"></script>
<script src="./js/common.js"></script>
<script src="./js/cart.js"></script>